from django.http import JsonResponsedef login_required(f):    def wrapper(self, request, *args, **kwargs):        print(request.session.get('is_login'))        if request.session.has_key('is_login'):            return f(self,request, *args, **kwargs)        return JsonResponse({"code": 403,                             'message': 'You are not logged in yet.'})    return wrapper